﻿using Vin.Extension.Framework.Aop;
using Vin.Extension.Framework.Models;
using Vin.Tool.Attributes;

namespace Vin.Extension.Framework.Adapter;

[Service]
public class VinAuthorizeAdapter : IVinAuthorizeAdapter
{
    public virtual void BeginAuthorize(VinAuthorizeAttribute attribute)
    {
    }

    public virtual bool Authorize(VinTokenModel model) => true;

    public virtual void EndAuthorize()
    {
    }
}